package com.itheima.mymethod;

public class Method8 {
    public static void main(String[] args) {

        long a = 10l;
        long b = 20l;
        System.out.println(compare(a,b));
    }
    //int类型不会自动提升为long
    public static boolean compare(int a,int b){
        return a == b;
    }
    //在没有byte类型的整数时 byte short会自动提升为int
    //public static boolean compare(byte a,byte b){
       // return a == b;
    //}
    public static boolean compare(long a,long b){
        return a == b;
    }
    //public static boolean compare(short a,short b){
        //return a == b;
    //}
}
